package uvt.map.mapmarker;

import java.awt.Color;

import org.openstreetmap.gui.jmapviewer.Coordinate;
import org.openstreetmap.gui.jmapviewer.Layer;
import org.openstreetmap.gui.jmapviewer.Style;

public class MapMarkerDot extends MapMarkerCircle {

    public static int DOT_RADIUS;

	private static Color color;

    public MapMarkerDot(Coordinate coord) {
        this(null, null, coord);
    }
    
    public MapMarkerDot(String name, Coordinate coord,int radius) {
        this(null, name, coord);
        setRadius(radius);
    }
    
    public MapMarkerDot(Layer layer, Coordinate coord) {
        this(layer, null, coord);
    }
    
    public MapMarkerDot(Layer layer, String name, Coordinate coord) {
        this(layer, name, coord, getDefaultStyle());
    }
    
    public MapMarkerDot(Color color, double lat, double lon) {
        this(null, null, lat, lon);
        setColor(color);
    }
    
    public MapMarkerDot(double lat, double lon) {
        this(null, null, lat, lon);
    }
    
    public MapMarkerDot(Layer layer, double lat, double lon) {
        this(layer, null, lat, lon);
    }
    
    public MapMarkerDot(Layer layer, String name, double lat, double lon) {
        this(layer, name, new Coordinate(lat, lon), getDefaultStyle());
    }
    
    public MapMarkerDot(Layer layer, String name, Coordinate coord, Style style) {
        super(layer, name, coord, DOT_RADIUS, STYLE.FIXED, style);
    }

    public static Style getDefaultStyle(){
        return new Style(Color.BLACK, color, null, getDefaultFont());
    }

	public static int getDOT_RADIUS() {
		return DOT_RADIUS;
	}

	public static void setDOT_RADIUS(int dOT_RADIUS) {
		DOT_RADIUS = dOT_RADIUS;
	}

	public static Color getDotColor() {
		return color;
	}

	public static void setDotColor(Color color) {
		MapMarkerDot.color = color;
	}
}